package iterator;

public class pnodeSplayNode {

	/**
	 * static dummy node for use in some methods
	 */
	static pnodeSplayNode dummy;
	/**
	 * a reference to the element in the node
	 */
	pnode item;
	/**
	 * the left child pointer
	 */
	pnodeSplayNode lt;
	/**
	 * the parent pointer
	 */
	pnodeSplayNode par;
	/**
	 * the right child pointer
	 */
	pnodeSplayNode rt;

	/**
	 * sets all pointers to null
	 */
	public pnodeSplayNode(pnode h) {
		item = h;
		lt = null;
		par = null;
		rt = null;

	}

	/**
	 * sets all pointers
	 * 
	 * @param h
	 *            item
	 * @param l
	 *            left child
	 * @param r
	 *            right child
	 */
	public pnodeSplayNode(pnode h, pnodeSplayNode l, pnodeSplayNode r) {
		item = h;
		lt = l;
		par = null;
		rt = r;

	}

}
